package adv7;

public class Dizhu {

	public static void main(String[] args) throws InterruptedException {
		Thread.currentThread().setName("周扒皮");
		Worker w = new Worker("王长工");
		w.start();
		while (true) {
			System.out.println(Thread.currentThread().getName() + "睡一会");
			Thread.sleep(1500);
			System.out.println(Thread.currentThread().getName() + "睡醒了，喊工人干活");
			w.interrupt();
		}
	}

}
